<?php
class ModulePrivilegeModel extends SzMySqlModel
{

    /**
     * @see SzAbstractModel::$ORM_NAME
     * @var string
     */
    public static $ORM_NAME = 'ModulePrivilege';

    /**
     * Initialize the ModulePrivilegeModel.
     *
     * @return ModulePrivilegeModel
     */
    public function __construct()
    {
        $this->table = 'module_privilege';
        $this->columns = array('privilegeId', 'pIds', 'cIds', 'name', 'requestName', 'status', );
        $this->autoIncrColumn = 0;
        $this->diffUpColumns = array();
        $this->updateFilter = array(0, );
        $this->toArrayFilter = array();
        $this->searchColumns = array(0, );
        $this->updateColumns = array(0, );
        $this->jsonColumns = array(1, 2, );
        $this->cacheColumn = 0;
        $this->shardColumn = null;
        $this->pkColumn = 0;
        $this->deleteColumns = array(0, );
        $this->tableShardCount = null;
        $this->cacheTime = 0;

        $this->ormName = 'ModulePrivilege';
        $this->columnCount = 6;
        $this->isList = false;
        $this->dbType = 'MySql';
        $this->voClassName = 'ModulePrivilegeVo';
        $this->voListClassName = 'ModulePrivilegeVoList';

        parent::__construct();
    }

    /**
     * Convert associate array to SzAbstractVo.
     *
     * @param $array
     * <pre>
     * array(
     *     columnName => columnValue,
     *     ...
     * )
     * </pre>
     * @return SzAbstractVo
     */
    public function convertAssocArrayToVo($array)
    {
        return parent::convertAssocArrayToVo($array);
    }
}